package com.young.shop_admin.pojo.entity;

import com.alibaba.fastjson.annotation.JSONField;


import java.math.BigDecimal;
import java.util.Date;

/**
 *
 */

public class Goods {

    private Integer id;//商品编号
    private String goodsName;//商品名称
    private BigDecimal price;//商品价格
    private Integer count;//商品数量
    private String introduction;//商品介绍
    private String imgUrl;//商品展示
    private String status;//状态
    private String type;//商品类型
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;//更新时间


    @Override
    public String toString() {
        return "Goods{" +
                "goodsId='" + id + '\'' +
                ", name='" + goodsName + '\'' +
                ", price=" + price +
                ", count=" + count +
                ", introduction='" + introduction + '\'' +
                ", imgUrl='" + imgUrl + '\'' +
                ", status='" + status + '\'' +
                ", type=" + type +
                ",  updateTime=" + updateTime +
                '}';
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getGoodsName() {
        return goodsName;
    }

    public void setGoodsName(String goodsName) {
        this.goodsName = goodsName;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public Integer getCount() {
        return count;
    }

    public void setCount(Integer count) {
        this.count = count;
    }

    public String getIntroduction() {
        return introduction;
    }

    public void setIntroduction(String introduction) {
        this.introduction = introduction;
    }

    public String getImgUrl() {
        return imgUrl;
    }

    public void setImgUrl(String imgUrl) {
        this.imgUrl = imgUrl;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }
}